const _import = require('./_import_' + process.env.NODE_ENV);

/* Layout */
import Layout from '../views/layout/Layout';

export default [
    {
        path: '/a/user',
        component: Layout,
        redirect: 'noredirect',
        name: 'user',
        meta: {
            title: '用户',
            icon: 'chart'
        },
        children: [
            { path: 'list', component: _import('business/user/UserPage'), meta: { title: '用户', noCache: true }}
        ]
    },
    {
        path: '/a/audit',
        component: Layout,
        name: 'audit',
        meta: {
            title: '审核',
            icon: 'lock'
        },
        children: [
            { path: 'user', component: _import('business/audit/AuditUserPage'), meta: { title: '用户认证', noCache: true }},
        ]
    },
    {
        path: '/a/home',
        component: Layout,
        name: 'home',
        meta: {
            title: '首页相关',
            icon: 'message'
        },
        children: [
            { path: 'article', component: _import('business/homepage/ArticlePage'), meta: { title: '热门头条', noCache: true }},
            { path: 'info', component: _import('business/homepage/InfoPage'), meta: { title: '资讯', noCache: true }},
            { path: 'banner', component: _import('business/homepage/BannerPage'), meta: { title: '轮播图', noCache: true }},
            { path: 'area', component: _import('business/homepage/AreaPage'), meta: { title: '指数地区', noCache: true }},
            { path: 'supplier', component: _import('business/homepage/SupplierPage'), meta: { title: '供应商', noCache: true }},
            { path: 'virtual', component: _import('business/homepage/VirtualPage'), meta: { title: '其他', noCache: true }}]
    },
    {
        path: '/a',
        component: Layout,
        name: 'userData',
        meta: {
            title: '用户数据',
            icon: 'chart'
        },
        children: [
            { path: 'sell', component: _import('business/SellPage'), meta: { title: '出货', noCache: true }},
            { path: 'want', component: _import('business/WantPage'), meta: { title: '求购', noCache: true }},
        ]
    },
    {
        path: '/a',
        component: Layout,
        name: 'baseData',
        meta: {
            title: '基础数据',
            icon: 'chart'
        },
        children: [
            { path: 'category', component: _import('business/CategoryPage'), name: 'category-lists', meta: { title: '类别', noCache: true }},
            // { path: 'company', component: _import('business/CompanyPage'), name: 'company-list', meta: { title: '公司', noCache: true }},
            { path: 'grade', component: _import('business/GradePage'), name: 'grade-list', meta: { title: '品级', noCache: true }},
            // { path: 'storehouse', component: _import('business/StorehousePage'), name: 'storehouse-list', meta: { title: '仓库', noCache: true }},
            // { path: 'tea-seed-base', component: _import('business/TeaSeedBasePage'), name: 'tea-seed-base-list', meta: { title: '油茶基地', noCache: true }}

        ]
    }
];
